package comfive.service.impl;

import comfive.dao.UserDao;
import comfive.dao.impl.UserDaoImpl;
import comfive.service.UserService;
import comfour.user.User;

public class UserServiceImpl implements UserService {

    UserDao userDao  = new UserDaoImpl();

    @Override
    public boolean loginToUser(String uname, String password) {
        //todo 业务代码
        boolean login = userDao.login(uname, password);
        if(login){
            return true;
        }
        return false;
    }

    @Override
    public boolean addServiceUser(User user) {
        //todo 业务代码
        //查询
        //shnach
        boolean b = userDao.addUser(user);
        return b;
    }
}
